﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace XiphMediaEncoder
{
   public partial class AeroLinkLabel : LinkLabel
   {
      private static readonly Color mainColor = Color.FromArgb(0, 102, 204);
      private static readonly Color hoverColor = Color.FromArgb(51, 153, 255);

      public AeroLinkLabel()
      {
         ActiveLinkColor = LinkColor = VisitedLinkColor = mainColor;
         AutoSize = true;
         Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point, 0);
         //Margin = new Padding(5);
         LinkBehavior = LinkBehavior.HoverUnderline;
      }

      protected override void OnMouseEnter(EventArgs e)
      {
         LinkColor = hoverColor;
         base.OnMouseEnter(e);
      }

      protected override void OnMouseLeave(EventArgs e)
      {
         LinkColor = mainColor;
         base.OnMouseLeave(e);
      }
   }
}